package ift604.projet.music;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.view.View;

public class PlayButton extends View {

    Paint paint = new Paint();

    public static PlayButton playButtonWithContext(Context context){
        return new PlayButton(context);
    }

    private PlayButton(Context context) {
        super(context);
        paint.setColor(Color.WHITE);
        paint.setStyle(Paint.Style.FILL);
    }

    @Override
    public void onDraw(Canvas canvas) {
        Path path = new Path();
        path.moveTo(0, 0);
        path.lineTo(20, 20);
        path.moveTo(20, 20);
        path.lineTo(0, 30);
        path.moveTo(0, 30);
        path.lineTo(0, 0);
        path.close();
    }

}
